package club.zbiao.modules.system.service.query;

import club.zbiao.modules.system.domain.Dept;
import club.zbiao.modules.system.repo.DeptRepository;
import club.zbiao.modules.system.service.dto.DeptDTO;
import club.zbiao.modules.system.service.mapper.DeptMapper;
import club.zbiao.modules.system.service.spec.DeptSpec;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author jie
 * @date 2018-12-03
 */
@Service
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
public class DeptQueryService extends BaseQueryServiceImpl<DeptDTO, Dept, DeptMapper,DeptSpec, DeptRepository> {

    public List<Dept> findByPid(long pid) {
        return queryRepo.findByPid(pid);
    }

}